package com.soft.javase.ch04.test03;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/22
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();

        //数据交换
        UPan uPan = new UPan();
        computer.exchange(uPan);

        MP3 mp3 = new MP3();
        computer.exchange(mp3);
        mp3.PlayMusic();

        YingPan yingPan = new YingPan();
        computer.exchange(yingPan);
    }
}
